<template>
  <div>
    {{ appInfo }}
    <el-button type="text" @click="dialogVisible = true">{{dialogTitle}}</el-button>
    <el-button type="text"@click="open('https://blog.csdn.net/TY_GYY/article/details/122939040')">
      说明文档链接
    </el-button>

    <el-dialog
        :title='dialogTitle'
        :visible.sync="dialogVisible"
        width="60%">
      <span>{{appUpdateLog}}</span>
      <span slot="footer" class="dialog-footer">
      <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
      </span>
    </el-dialog>
  </div>


</template>

<script>
import {APP_CONFIG} from "../../assets/AppConfig";

export default {
  name: "AppInfo",
  data() {
    return {
      appInfo:'',
      appUpdateLog:'',
      dialogVisible:false,
      dialogTitle:'更新日志',
    }
  },
  mounted(){
    this.appInfo="去重助手"+APP_CONFIG.appVersion
    this.appUpdateLog=APP_CONFIG.appUpdateLog
  },
  methods:{
    open(link) {
      this.$electron.shell.openExternal(link)
    },
  }

}
</script>

<style scoped>

</style>